#encoding=utf-8
# try:
#
#     a = input("please input 被除数: ")
#     b = input("请输入除数: ")
#     c = float(a)/float(b)
#     print(c)
# except ZeroDivisionError:
#     print(" son error")
# except ValueError:
#     print("father error")
# except NameError:
#     print("变量不存在")
# except BaseException as e:
#     print(e)
# else:
#     print(c)
# finally:
#     print("我是finally中的语句，无论发生异常与否，都执行")
# print("over")

def test01():
    print("step1")
    try:
        x = 3/0
        # return "测试try return"
    except:
        print("step2")
        print("异常：0不能做除数")
        # return "测试：except"
    finally:
        print("step4")
        # return "测试finally"
    print("step5")
    return "e"    #一般return 不放到try except中

print(test01())